home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
win
/
ch19
/
19fig27.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
1KB
|
54 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Animated shape
Shape {
appearance Appearance {
material Material { }
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1.0 -1.0 0.0, 1.0 -1.0 0.0,
1.0 1.0 0.0, -1.0 1.0 0.0,
]
}
normal DEF AnimNorm Normal {
vector [
0.0 0.0 1.0, 0.0 0.0 1.0,
0.0 0.0 1.0, 0.0 0.0 1.0,
]
}
coordIndex [ 0, 1, 2, 3 ]
normalIndex [ 0, 1, 2, 3 ]
normalPerVertex TRUE
}
},
# Animation clock
DEF Clock TimeSensor {
cycleInterval 4.0
loop TRUE
},
# Animation normals
DEF NormPath NormalInterpolator {
key [ 0.0, 0.5, 1.0 ]
keyValue [
# time 0.0 normals
0.0 0.0 1.0, 0.0 0.0 1.0,
0.0 0.0 1.0, 0.0 0.0 1.0,
# time 0.5 normals
0.0 0.0 1.0, 1.0 0.0 0.0,
1.0 0.0 0.0, 0.0 0.0 1.0,
# time 1.0 normals
0.0 0.0 1.0, 0.0 0.0 1.0,
0.0 0.0 1.0, 0.0 0.0 1.0,
]
}
]
}
ROUTE Clock.fraction_changed TO NormPath.set_fraction
ROUTE NormPath.value_changed TO AnimNorm.set_vector